<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 4.2.0">
  <link rel="apple-touch-icon" sizes="180x180" href="/blog/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/blog/images/favicon-32px.ico">
  <link rel="icon" type="image/png" sizes="16x16" href="/blog/images/favicon-16px.ico">
  <link rel="mask-icon" href="/blog/images/logo.svg" color="#222">

<link rel="stylesheet" href="/blog/css/main.css">


<link rel="stylesheet" href="/blog/lib/font-awesome/css/font-awesome.min.css">

<script id="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"kekeyg.gitee.io","root":"/blog/","scheme":"Gemini","version":"7.7.2","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":true,"show_result":true,"style":"mac"},"back2top":{"enable":true,"sidebar":false,"scrollpercent":false},"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":true,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},"path":"search.xml"};
  </script>

  <meta name="description" content="TI为推出的IWR1443毫米波雷达评估板提供了丰富可用的演示demo，这些都需要上电之后下载配置文件，这里经过修改可以将配置文件固化在固件中，使得评估板上电即开始工作。  不过需要注意的是评估板的芯片版本必须与SDK的版本一致，否则会出现无法下载固件，CCS编译错误等问题。 我目前手头的IWR1443对应的SDK版本为mmwave_sdk_02_01_00_04 对应的demo工具箱版本号为mm">
<meta property="og:type" content="article">
<meta property="og:title" content="IWR1443使用内置config文件">
<meta property="og:url" content="http://kekeyg.gitee.io/blog/2020/04/22/iwr1443insert-config/index.html">
<meta property="og:site_name" content="keyg blog">
<meta property="og:description" content="TI为推出的IWR1443毫米波雷达评估板提供了丰富可用的演示demo，这些都需要上电之后下载配置文件，这里经过修改可以将配置文件固化在固件中，使得评估板上电即开始工作。  不过需要注意的是评估板的芯片版本必须与SDK的版本一致，否则会出现无法下载固件，CCS编译错误等问题。 我目前手头的IWR1443对应的SDK版本为mmwave_sdk_02_01_00_04 对应的demo工具箱版本号为mm">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://blog-1301937525.cos.ap-beijing.myqcloud.com/blog_image/iwr1443insert-config/%E5%BE%AE%E4%BF%A1%E6%88%AA%E5%9B%BE_015.png">
<meta property="og:image" content="https://blog-1301937525.cos.ap-beijing.myqcloud.com/blog_image/iwr1443insert-config/%E5%BE%AE%E4%BF%A1%E6%88%AA%E5%9B%BE_02.png">
<meta property="og:image" content="https://blog-1301937525.cos.ap-beijing.myqcloud.com/blog_image/iwr1443insert-config/%E5%BE%AE%E4%BF%A1%E6%88%AA%E5%9B%BE_03.png">
<meta property="og:image" content="https://blog-1301937525.cos.ap-beijing.myqcloud.com/blog_image/iwr1443insert-config/%E9%85%8D%E7%BD%AE.png">
<meta property="article:published_time" content="2020-04-22T08:57:10.000Z">
<meta property="article:modified_time" content="2021-03-09T07:39:31.260Z">
<meta property="article:author" content="keyg">
<meta property="article:tag" content="MmwaveRadar">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://blog-1301937525.cos.ap-beijing.myqcloud.com/blog_image/iwr1443insert-config/%E5%BE%AE%E4%BF%A1%E6%88%AA%E5%9B%BE_015.png">

<link rel="canonical" href="http://kekeyg.gitee.io/blog/2020/04/22/iwr1443insert-config/">


<script id="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : false,
    isPost : true
  };
</script>

  <title>IWR1443使用内置config文件 | keyg blog</title>
  






  <noscript>
  <style>
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript>

</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <div class="container use-motion">
    <div class="headband"></div>

    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏">
      <span class="toggle-line toggle-line-first"></span>
      <span class="toggle-line toggle-line-middle"></span>
      <span class="toggle-line toggle-line-last"></span>
    </div>
  </div>

  <div class="site-meta">

    <div>
      <a href="/blog/" class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">keyg blog</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
        <i class="fa fa-search fa-fw fa-lg"></i>
    </div>
  </div>
</div>


<nav class="site-nav">
  
  <ul id="menu" class="menu">
        <li class="menu-item menu-item-home">

    <a href="/blog/" rel="section"><i class="fa fa-fw fa-home"></i>首页</a>

  </li>
        <li class="menu-item menu-item-tags">

    <a href="/blog/tags/" rel="section"><i class="fa fa-fw fa-tags"></i>标签</a>

  </li>
        <li class="menu-item menu-item-categories">

    <a href="/blog/categories/" rel="section"><i class="fa fa-fw fa-th"></i>分类</a>

  </li>
        <li class="menu-item menu-item-archives">

    <a href="/blog/archives/" rel="section"><i class="fa fa-fw fa-archive"></i>归档</a>

  </li>
      <li class="menu-item menu-item-search">
        <a role="button" class="popup-trigger"><i class="fa fa-search fa-fw"></i>搜索
        </a>
      </li>
  </ul>

</nav>
  <div class="site-search">
    <div class="popup search-popup">
    <div class="search-header">
  <span class="search-icon">
    <i class="fa fa-search"></i>
  </span>
  <div class="search-input-container">
    <input autocomplete="off" autocorrect="off" autocapitalize="off"
           placeholder="搜索..." spellcheck="false"
           type="search" class="search-input">
  </div>
  <span class="popup-btn-close">
    <i class="fa fa-times-circle"></i>
  </span>
</div>
<div id="search-result"></div>

</div>
<div class="search-pop-overlay"></div>

  </div>
</div>
    </header>

    
  <div class="back-to-top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>

  <a href="https://github.com/windkeke" class="github-corner" title="Follow me on GitHub" aria-label="Follow me on GitHub" rel="noopener" target="_blank"><svg width="80" height="80" viewBox="0 0 250 250" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg></a>


    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          

          <div class="content">
            

  <div class="posts-expand">
      
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block " lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="http://kekeyg.gitee.io/blog/2020/04/22/iwr1443insert-config/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/blog/images/avatar.jpg">
      <meta itemprop="name" content="keyg">
      <meta itemprop="description" content="学习心得与技术文章">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="keyg blog">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          IWR1443使用内置config文件
        </h1>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>

              <time title="创建时间：2020-04-22 16:57:10" itemprop="dateCreated datePublished" datetime="2020-04-22T16:57:10+08:00">2020-04-22</time>
            </span>
              <span class="post-meta-item">
                <span class="post-meta-item-icon">
                  <i class="fa fa-calendar-check-o"></i>
                </span>
                <span class="post-meta-item-text">更新于</span>
                <time title="修改时间：2021-03-09 15:39:31" itemprop="dateModified" datetime="2021-03-09T15:39:31+08:00">2021-03-09</time>
              </span>
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">分类于</span>
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/blog/categories/%E6%AF%AB%E7%B1%B3%E6%B3%A2%E9%9B%B7%E8%BE%BE%E5%AD%A6%E4%B9%A0/" itemprop="url" rel="index"><span itemprop="name">毫米波雷达学习</span></a>
                </span>
            </span>

          <br>
            <span class="post-meta-item" title="本文字数">
              <span class="post-meta-item-icon">
                <i class="fa fa-file-word-o"></i>
              </span>
                <span class="post-meta-item-text">本文字数：</span>
              <span>4.5k</span>
            </span>
            <span class="post-meta-item" title="阅读时长">
              <span class="post-meta-item-icon">
                <i class="fa fa-clock-o"></i>
              </span>
                <span class="post-meta-item-text">阅读时长 &asymp;</span>
              <span>4 分钟</span>
            </span>

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
        <p>TI为推出的IWR1443毫米波雷达评估板提供了丰富可用的演示demo，这些都需要上电之后下载配置文件，这里经过修改可以将配置文件固化在固件中，使得评估板上电即开始工作。</p>
<ul>
<li><p>不过需要注意的是评估板的芯片版本必须与SDK的版本一致，否则会出现无法下载固件，CCS编译错误等问题。</p>
<p>我目前手头的IWR1443对应的SDK版本为mmwave_sdk_02_01_00_04</p>
<p>对应的demo工具箱版本号为mmwave_industrial_toolbox_3_6_1</p>
<a id="more"></a>
<h2 id="在-mmwave-cli-c中添加CLI的头文件"><a href="#在-mmwave-cli-c中添加CLI的头文件" class="headerlink" title="在 mmwave_cli.c中添加CLI的头文件"></a>在 mmwave_cli.c中添加CLI的头文件</h2></li>
</ul>
<figure class="highlight c"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta">#<span class="meta-keyword">include</span> <span class="meta-string">&lt;ti/utils/cli/include/cli_internal.h&gt;</span></span></span><br></pre></td></tr></table></figure>
<p><img src="https://blog-1301937525.cos.ap-beijing.myqcloud.com/blog_image/iwr1443insert-config/%E5%BE%AE%E4%BF%A1%E6%88%AA%E5%9B%BE_015.png" alt="图片1"></p>
<h2 id="在mmwave-cli-c中添加CLI的结构体"><a href="#在mmwave-cli-c中添加CLI的结构体" class="headerlink" title="在mmwave_cli.c中添加CLI的结构体"></a>在mmwave_cli.c中添加CLI的结构体</h2><figure class="highlight c"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">extern</span> CLI_MCB      gCLI;</span><br></pre></td></tr></table></figure>
<p><img src="https://blog-1301937525.cos.ap-beijing.myqcloud.com/blog_image/iwr1443insert-config/%E5%BE%AE%E4%BF%A1%E6%88%AA%E5%9B%BE_02.png" alt="图片2"></p>
<h2 id="在main-c文件中添加相应的功能定义"><a href="#在main-c文件中添加相应的功能定义" class="headerlink" title="在main.c文件中添加相应的功能定义"></a>在main.c文件中添加相应的功能定义</h2><figure class="highlight c"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="function"><span class="keyword">extern</span> <span class="keyword">void</span> <span class="title">MmwDemo_Bypass_CLI</span> <span class="params">(<span class="keyword">void</span>)</span></span>;</span><br></pre></td></tr></table></figure>
<ul>
<li>在”void MmwDemo_initTask(UArg arg0, UArg arg1)”函数中调用MmwDemo_Bypass_CLI()函数</li>
</ul>
<figure class="highlight c"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">MmwDemo_Bypass_CLI();</span><br></pre></td></tr></table></figure>
<p><img src="https://blog-1301937525.cos.ap-beijing.myqcloud.com/blog_image/iwr1443insert-config/%E5%BE%AE%E4%BF%A1%E6%88%AA%E5%9B%BE_03.png" alt="图片3"></p>
<h2 id="在mmwave-cli-c中添加配置信息"><a href="#在mmwave-cli-c中添加配置信息" class="headerlink" title="在mmwave_cli.c中添加配置信息"></a>在mmwave_cli.c中添加配置信息</h2><figure class="highlight c"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta">#<span class="meta-keyword">define</span> CLI_BYPASS 1</span></span><br><span class="line"></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> MAX_RADAR_CMD        24</span></span><br><span class="line"></span><br><span class="line"><span class="keyword">uint8_t</span>* radarCmdString[MAX_RADAR_CMD] =</span><br><span class="line"></span><br><span class="line">&#123;</span><br><span class="line"></span><br><span class="line">   &#123;<span class="string">"sensorStop \r\n"</span>&#125;,</span><br><span class="line"></span><br><span class="line">   &#123;<span class="string">"flushCfg \r\n"</span>&#125;,</span><br><span class="line"></span><br><span class="line">   &#123;<span class="string">"dfeDataOutputMode 1 \r\n"</span>&#125;,</span><br><span class="line"></span><br><span class="line">   &#123;<span class="string">"channelCfg 15 7 0 \r\n"</span>&#125;,</span><br><span class="line"></span><br><span class="line">   &#123;<span class="string">"adcCfg 2 1 \r\n"</span>&#125;,</span><br><span class="line"></span><br><span class="line">   &#123;<span class="string">"adcbufCfg 0 1 0 1 \r\n"</span>&#125;,</span><br><span class="line"></span><br><span class="line">   &#123;<span class="string">"profileCfg 0 77 7 7 57.14 0 0 70 1 240 4884 0 0 30 \r\n"</span>&#125;,</span><br><span class="line"></span><br><span class="line">   &#123;<span class="string">"chirpCfg 0 0 0 0 0 0 0 1 \r\n"</span>&#125;,</span><br><span class="line"></span><br><span class="line">   &#123;<span class="string">"chirpCfg 1 1 0 0 0 0 0 4 \r\n"</span>&#125;,</span><br><span class="line"></span><br><span class="line">   &#123;<span class="string">"chirpCfg 2 2 0 0 0 0 0 2 \r\n"</span>&#125;,</span><br><span class="line"></span><br><span class="line">   &#123;<span class="string">"frameCfg 0 2 16 0 33.333 1 0 \r\n"</span>&#125;,</span><br><span class="line"></span><br><span class="line">   &#123;<span class="string">"lowPower 0 0 \r\n"</span>&#125;,</span><br><span class="line"></span><br><span class="line">   &#123;<span class="string">"guiMonitor 1 0 0 0 0 0 \r\n"</span>&#125;,</span><br><span class="line"></span><br><span class="line">   &#123;<span class="string">"cfarCfg 0 2 8 4 3 0 768 \r\n"</span>&#125;,</span><br><span class="line"></span><br><span class="line">   &#123;<span class="string">"peakGrouping 1 0 1 1 229 \r\n"</span>&#125;,</span><br><span class="line"></span><br><span class="line">   &#123;<span class="string">"multiObjBeamForming 1 0.5 \r\n"</span>&#125;,</span><br><span class="line"></span><br><span class="line">   &#123;<span class="string">"clutterRemoval 0 \r\n"</span>&#125;,</span><br><span class="line"></span><br><span class="line">   &#123;<span class="string">"calibDcRangeSig 0 -5 8 256 \r\n"</span>&#125;,</span><br><span class="line"></span><br><span class="line">   &#123;<span class="string">"compRangeBiasAndRxChanPhase 0.0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 \r\n"</span>&#125;,</span><br><span class="line"></span><br><span class="line">   &#123;<span class="string">"measureRangeBiasAndRxChanPhase 0 1.5 0.2 \r\n"</span>&#125;,</span><br><span class="line"></span><br><span class="line">   &#123;<span class="string">"CQRxSatMonitor 0 3 5 123 0 \r\n"</span>&#125;,</span><br><span class="line"></span><br><span class="line">   &#123;<span class="string">"CQSigImgMonitor 0 119 4 \r\n"</span>&#125;,</span><br><span class="line"></span><br><span class="line">   &#123;<span class="string">"analogMonitor 1 1 \r\n"</span>&#125;,</span><br><span class="line"></span><br><span class="line">   &#123;<span class="string">"sensorStart \r\n"</span>&#125;,</span><br><span class="line"></span><br><span class="line">&#125;;</span><br></pre></td></tr></table></figure>
<figure class="highlight c"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br><span class="line">80</span><br><span class="line">81</span><br><span class="line">82</span><br><span class="line">83</span><br><span class="line">84</span><br><span class="line">85</span><br><span class="line">86</span><br><span class="line">87</span><br><span class="line">88</span><br><span class="line">89</span><br><span class="line">90</span><br><span class="line">91</span><br><span class="line">92</span><br><span class="line">93</span><br><span class="line">94</span><br><span class="line">95</span><br><span class="line">96</span><br><span class="line">97</span><br><span class="line">98</span><br><span class="line">99</span><br><span class="line">100</span><br><span class="line">101</span><br><span class="line">102</span><br><span class="line">103</span><br><span class="line">104</span><br><span class="line">105</span><br><span class="line">106</span><br><span class="line">107</span><br><span class="line">108</span><br><span class="line">109</span><br><span class="line">110</span><br><span class="line">111</span><br><span class="line">112</span><br><span class="line">113</span><br><span class="line">114</span><br><span class="line">115</span><br><span class="line">116</span><br><span class="line">117</span><br><span class="line">118</span><br><span class="line">119</span><br><span class="line">120</span><br><span class="line">121</span><br><span class="line">122</span><br><span class="line">123</span><br><span class="line">124</span><br><span class="line">125</span><br><span class="line">126</span><br><span class="line">127</span><br><span class="line">128</span><br><span class="line">129</span><br><span class="line">130</span><br><span class="line">131</span><br><span class="line">132</span><br><span class="line">133</span><br><span class="line">134</span><br><span class="line">135</span><br><span class="line">136</span><br><span class="line">137</span><br><span class="line">138</span><br><span class="line">139</span><br><span class="line">140</span><br><span class="line">141</span><br><span class="line">142</span><br><span class="line">143</span><br><span class="line">144</span><br><span class="line">145</span><br><span class="line">146</span><br><span class="line">147</span><br><span class="line">148</span><br><span class="line">149</span><br><span class="line">150</span><br><span class="line">151</span><br><span class="line">152</span><br><span class="line">153</span><br><span class="line">154</span><br><span class="line">155</span><br><span class="line">156</span><br><span class="line">157</span><br><span class="line">158</span><br><span class="line">159</span><br><span class="line">160</span><br><span class="line">161</span><br><span class="line">162</span><br><span class="line">163</span><br><span class="line">164</span><br><span class="line">165</span><br><span class="line">166</span><br><span class="line">167</span><br><span class="line">168</span><br><span class="line">169</span><br><span class="line">170</span><br><span class="line">171</span><br><span class="line">172</span><br><span class="line">173</span><br><span class="line">174</span><br><span class="line">175</span><br><span class="line">176</span><br><span class="line">177</span><br><span class="line">178</span><br><span class="line">179</span><br><span class="line">180</span><br><span class="line">181</span><br><span class="line">182</span><br><span class="line">183</span><br><span class="line">184</span><br><span class="line">185</span><br><span class="line">186</span><br><span class="line">187</span><br><span class="line">188</span><br><span class="line">189</span><br><span class="line">190</span><br><span class="line">191</span><br><span class="line">192</span><br><span class="line">193</span><br><span class="line">194</span><br><span class="line">195</span><br><span class="line">196</span><br><span class="line">197</span><br><span class="line">198</span><br><span class="line">199</span><br><span class="line">200</span><br><span class="line">201</span><br><span class="line">202</span><br><span class="line">203</span><br><span class="line">204</span><br><span class="line">205</span><br><span class="line">206</span><br><span class="line">207</span><br><span class="line">208</span><br><span class="line">209</span><br><span class="line">210</span><br><span class="line">211</span><br><span class="line">212</span><br><span class="line">213</span><br></pre></td><td class="code"><pre><span class="line"><span class="function"><span class="keyword">static</span> <span class="keyword">int32_t</span> <span class="title">CLI_ByPassApi</span><span class="params">(CLI_Cfg* ptrCLICfg)</span></span></span><br><span class="line"><span class="function"></span></span><br><span class="line"><span class="function"></span>&#123;</span><br><span class="line"></span><br><span class="line">   <span class="comment">//uint8_t cmdString[128];</span></span><br><span class="line"></span><br><span class="line">   <span class="keyword">char</span>* tokenizedArgs[CLI_MAX_ARGS];</span><br><span class="line"></span><br><span class="line">   <span class="keyword">char</span>* ptrCLICommand;</span><br><span class="line"></span><br><span class="line">   <span class="keyword">char</span> delimitter[] = <span class="string">" \r\n"</span>;</span><br><span class="line"></span><br><span class="line">   <span class="keyword">uint32_t</span> argIndex;</span><br><span class="line"></span><br><span class="line">   CLI_CmdTableEntry* ptrCLICommandEntry;</span><br><span class="line"></span><br><span class="line">   <span class="keyword">int32_t</span> cliStatus;</span><br><span class="line"></span><br><span class="line">   <span class="keyword">uint32_t</span> index, idx;</span><br><span class="line"></span><br><span class="line">   <span class="keyword">uint16_t</span> numCLICommands = <span class="number">0U</span>;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line">   <span class="comment">/* Sanity Check: Validate the arguments */</span></span><br><span class="line"></span><br><span class="line">   <span class="keyword">if</span> (ptrCLICfg == <span class="literal">NULL</span>)</span><br><span class="line"></span><br><span class="line">   <span class="keyword">return</span> <span class="number">-1</span>;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line">   <span class="comment">/* Cycle through and determine the number of supported CLI commands: */</span></span><br><span class="line"></span><br><span class="line">   <span class="keyword">for</span> (index = <span class="number">0</span>; index &lt; CLI_MAX_CMD; index++)</span><br><span class="line"></span><br><span class="line">   &#123;</span><br><span class="line"></span><br><span class="line">       <span class="comment">/* Do we have a valid entry? */</span></span><br><span class="line"></span><br><span class="line">       <span class="keyword">if</span> (ptrCLICfg-&gt;tableEntry[index].cmd == <span class="literal">NULL</span>)</span><br><span class="line"></span><br><span class="line">       &#123;</span><br><span class="line"></span><br><span class="line">           <span class="comment">/* NO: This is the last entry */</span></span><br><span class="line"></span><br><span class="line">           <span class="keyword">break</span>;</span><br><span class="line"></span><br><span class="line">       &#125;</span><br><span class="line"></span><br><span class="line">       <span class="keyword">else</span></span><br><span class="line"></span><br><span class="line">       &#123;</span><br><span class="line"></span><br><span class="line">           <span class="comment">/* YES: Increment the number of CLI commands */</span></span><br><span class="line"></span><br><span class="line">           numCLICommands = numCLICommands + <span class="number">1</span>;</span><br><span class="line"></span><br><span class="line">       &#125;</span><br><span class="line"></span><br><span class="line">   &#125;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line">   <span class="comment">/* Execute All Radar Commands */</span></span><br><span class="line"></span><br><span class="line">   <span class="keyword">for</span> (idx = <span class="number">0</span>; idx &lt; MAX_RADAR_CMD; idx++)</span><br><span class="line"></span><br><span class="line">   &#123;</span><br><span class="line"></span><br><span class="line">       <span class="comment">/* Reset all the tokenized arguments: */</span></span><br><span class="line"></span><br><span class="line">       <span class="built_in">memset</span> ((<span class="keyword">void</span> *)&amp;tokenizedArgs, <span class="number">0</span>, <span class="keyword">sizeof</span>(tokenizedArgs));</span><br><span class="line"></span><br><span class="line">       argIndex = <span class="number">0</span>;</span><br><span class="line"></span><br><span class="line">       ptrCLICommand = (<span class="keyword">char</span>*)radarCmdString[idx];</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line">       <span class="comment">/* Set the CLI status: */</span></span><br><span class="line"></span><br><span class="line">       cliStatus = <span class="number">-1</span>;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line">       <span class="comment">/* The command has been entered we now tokenize the command message */</span></span><br><span class="line"></span><br><span class="line">       <span class="keyword">while</span> (<span class="number">1</span>)</span><br><span class="line"></span><br><span class="line">       &#123;</span><br><span class="line"></span><br><span class="line">           <span class="comment">/* Tokenize the arguments: */</span></span><br><span class="line"></span><br><span class="line">           tokenizedArgs[argIndex] = strtok(ptrCLICommand, delimitter);</span><br><span class="line"></span><br><span class="line">           <span class="keyword">if</span> (tokenizedArgs[argIndex] == <span class="literal">NULL</span>)</span><br><span class="line"></span><br><span class="line">               <span class="keyword">break</span>;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line">           <span class="comment">/* Increment the argument index: */</span></span><br><span class="line"></span><br><span class="line">           argIndex++;</span><br><span class="line"></span><br><span class="line">           <span class="keyword">if</span> (argIndex &gt;= CLI_MAX_ARGS)</span><br><span class="line"></span><br><span class="line">               <span class="keyword">break</span>;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line">           <span class="comment">/* Reset the command string */</span></span><br><span class="line"></span><br><span class="line">           ptrCLICommand = <span class="literal">NULL</span>;</span><br><span class="line"></span><br><span class="line">       &#125;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line">       <span class="comment">/* Were we able to tokenize the CLI command? */</span></span><br><span class="line"></span><br><span class="line">       <span class="keyword">if</span> (argIndex == <span class="number">0</span>)</span><br><span class="line"></span><br><span class="line">           <span class="keyword">continue</span>;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line">       <span class="comment">/* Cycle through all the registered CLI commands: */</span></span><br><span class="line"></span><br><span class="line">       <span class="keyword">for</span> (index = <span class="number">0</span>; index &lt; numCLICommands; index++)</span><br><span class="line"></span><br><span class="line">       &#123;</span><br><span class="line"></span><br><span class="line">           ptrCLICommandEntry = &amp;ptrCLICfg-&gt;tableEntry[index];</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line">           <span class="comment">/* Do we have a match? */</span></span><br><span class="line"></span><br><span class="line">           <span class="keyword">if</span> (<span class="built_in">strcmp</span>(ptrCLICommandEntry-&gt;cmd, tokenizedArgs[<span class="number">0</span>]) == <span class="number">0</span>)</span><br><span class="line"></span><br><span class="line">           &#123;</span><br><span class="line"></span><br><span class="line">               <span class="comment">/* YES: Pass this to the CLI registered function */</span></span><br><span class="line"></span><br><span class="line">               cliStatus = ptrCLICommandEntry-&gt;cmdHandlerFxn (argIndex, tokenizedArgs);</span><br><span class="line"></span><br><span class="line">               <span class="keyword">if</span> (cliStatus == <span class="number">0</span>)</span><br><span class="line"></span><br><span class="line">               &#123;</span><br><span class="line"></span><br><span class="line">                   CLI_write (<span class="string">"Done\n"</span>);</span><br><span class="line"></span><br><span class="line">               &#125;</span><br><span class="line"></span><br><span class="line">               <span class="keyword">else</span></span><br><span class="line"></span><br><span class="line">               &#123;</span><br><span class="line"></span><br><span class="line">                   CLI_write (<span class="string">"Error %d\n"</span>, cliStatus);</span><br><span class="line"></span><br><span class="line">               &#125;</span><br><span class="line"></span><br><span class="line">               <span class="keyword">break</span>;</span><br><span class="line"></span><br><span class="line">           &#125;</span><br><span class="line"></span><br><span class="line">       &#125;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line">       <span class="comment">/* Did we get a matching CLI command? */</span></span><br><span class="line"></span><br><span class="line">       <span class="keyword">if</span> (index == numCLICommands)</span><br><span class="line"></span><br><span class="line">       &#123;</span><br><span class="line"></span><br><span class="line">           <span class="comment">/* NO matching command found. Is the mmWave extension enabled? */</span></span><br><span class="line"></span><br><span class="line">           <span class="keyword">if</span> (ptrCLICfg-&gt;enableMMWaveExtension == <span class="number">1U</span>)</span><br><span class="line"></span><br><span class="line">           &#123;</span><br><span class="line"></span><br><span class="line">               <span class="comment">/* Yes: Pass this to the mmWave extension handler */</span></span><br><span class="line"></span><br><span class="line">               cliStatus = CLI_MMWaveExtensionHandler (argIndex, tokenizedArgs);</span><br><span class="line"></span><br><span class="line">           &#125;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line">           <span class="comment">/* Was the CLI command found? */</span></span><br><span class="line"></span><br><span class="line">           <span class="keyword">if</span> (cliStatus == <span class="number">-1</span>)</span><br><span class="line"></span><br><span class="line">           &#123;</span><br><span class="line"></span><br><span class="line">               <span class="comment">/* No: The command was still not found */</span></span><br><span class="line"></span><br><span class="line">               CLI_write (<span class="string">"'%s' is not recognized as a CLI command\n"</span>, tokenizedArgs[<span class="number">0</span>]);</span><br><span class="line"></span><br><span class="line">           &#125;</span><br><span class="line"></span><br><span class="line">       &#125;</span><br><span class="line"></span><br><span class="line">   &#125;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line">   <span class="keyword">return</span> <span class="number">0</span>;</span><br><span class="line"></span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>
<figure class="highlight c"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br></pre></td><td class="code"><pre><span class="line"><span class="function"><span class="keyword">void</span> <span class="title">MmwDemo_Bypass_CLI</span> <span class="params">(<span class="keyword">void</span>)</span></span></span><br><span class="line"><span class="function"></span></span><br><span class="line"><span class="function"></span>&#123;</span><br><span class="line"></span><br><span class="line">   <span class="keyword">if</span> (CLI_ByPassApi(&amp;gCLI.cfg) != <span class="number">0</span>)</span><br><span class="line"></span><br><span class="line">   &#123;</span><br><span class="line"></span><br><span class="line">       System_printf (<span class="string">"Error: Unable to CLI_ByPassApi\n"</span>);</span><br><span class="line"></span><br><span class="line">       <span class="keyword">return</span>;</span><br><span class="line"></span><br><span class="line">   &#125;</span><br><span class="line"></span><br><span class="line">   <span class="keyword">return</span>;</span><br><span class="line"></span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>
<h2 id="编译生成bin文件"><a href="#编译生成bin文件" class="headerlink" title="编译生成bin文件"></a>编译生成bin文件</h2><p>在build setting选项中勾选生成bin文件</p>
<p><img src="https://blog-1301937525.cos.ap-beijing.myqcloud.com/blog_image/iwr1443insert-config/%E9%85%8D%E7%BD%AE.png" alt="图片4"></p>

    </div>

    
    
    

      <footer class="post-footer">
          <div class="post-tags">
              <a href="/blog/tags/MmwaveRadar/" rel="tag"># MmwaveRadar</a>
          </div>

        


        
    <div class="post-nav">
      <div class="post-nav-item"></div>
      <div class="post-nav-item">
    <a href="/blog/2020/04/26/RTOS-study-notes2/" rel="next" title="TI-RTOS学习笔记2">
      TI-RTOS学习笔记2 <i class="fa fa-chevron-right"></i>
    </a></div>
    </div>
      </footer>
    
  </article>
  
  
  

  </div>


          </div>
          

<script>
  window.addEventListener('tabs:register', () => {
    let activeClass = CONFIG.comments.activeClass;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      let commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>

        </div>
          
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line toggle-line-first"></span>
    <span class="toggle-line toggle-line-middle"></span>
    <span class="toggle-line toggle-line-last"></span>
  </div>

  <aside class="sidebar">
    <div class="sidebar-inner">

      <ul class="sidebar-nav motion-element">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <!--noindex-->
      <div class="post-toc-wrap sidebar-panel">
          <div class="post-toc motion-element"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#在-mmwave-cli-c中添加CLI的头文件"><span class="nav-number">1.</span> <span class="nav-text">在 mmwave_cli.c中添加CLI的头文件</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#在mmwave-cli-c中添加CLI的结构体"><span class="nav-number">2.</span> <span class="nav-text">在mmwave_cli.c中添加CLI的结构体</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#在main-c文件中添加相应的功能定义"><span class="nav-number">3.</span> <span class="nav-text">在main.c文件中添加相应的功能定义</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#在mmwave-cli-c中添加配置信息"><span class="nav-number">4.</span> <span class="nav-text">在mmwave_cli.c中添加配置信息</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#编译生成bin文件"><span class="nav-number">5.</span> <span class="nav-text">编译生成bin文件</span></a></li></ol></div>
      </div>
      <!--/noindex-->

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
    <img class="site-author-image" itemprop="image" alt="keyg"
      src="/blog/images/avatar.jpg">
  <p class="site-author-name" itemprop="name">keyg</p>
  <div class="site-description" itemprop="description">学习心得与技术文章</div>
</div>
<div class="site-state-wrap motion-element">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/blog/archives/">
        
          <span class="site-state-item-count">7</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
            <a href="/blog/categories/">
          
        <span class="site-state-item-count">3</span>
        <span class="site-state-item-name">分类</span></a>
      </div>
      <div class="site-state-item site-state-tags">
            <a href="/blog/tags/">
          
        <span class="site-state-item-count">3</span>
        <span class="site-state-item-name">标签</span></a>
      </div>
  </nav>
</div>
  <div class="links-of-author motion-element">
      <span class="links-of-author-item">
        <a href="https://github.com/windkeke" title="GitHub → https:&#x2F;&#x2F;github.com&#x2F;windkeke" rel="noopener" target="_blank"><i class="fa fa-fw fa-github"></i>GitHub</a>
      </span>
      <span class="links-of-author-item">
        <a href="https://gitee.com/kekeyg" title="Gitee → https:&#x2F;&#x2F;gitee.com&#x2F;kekeyg" rel="noopener" target="_blank"><i class="fa fa-fw fa-github"></i>Gitee</a>
      </span>
      <span class="links-of-author-item">
        <a href="mailto:1503009796@qq.com" title="E-Mail → mailto:1503009796@qq.com" rel="noopener" target="_blank"><i class="fa fa-fw fa-envelope"></i>E-Mail</a>
      </span>
  </div>



      </div>

    </div>
  </aside>
  <div id="sidebar-dimmer"></div>


      </div>
    </main>

    <footer class="footer">
      <div class="footer-inner">
        

<div class="copyright">
  
  &copy; 
  <span itemprop="copyrightYear">2021</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">keyg</span>
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item-icon">
      <i class="fa fa-area-chart"></i>
    </span>
    <span title="站点总字数">10k</span>
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item-icon">
      <i class="fa fa-coffee"></i>
    </span>
    <span title="站点阅读时长">9 分钟</span>
</div>

        








      </div>
    </footer>
  </div>

  
  
  <script color='0,0,255' opacity='0.5' zIndex='-1' count='99' src="/blog/lib/canvas-nest/canvas-nest.min.js"></script>
  <script src="/blog/lib/anime.min.js"></script>
  <script src="/blog/lib/velocity/velocity.min.js"></script>
  <script src="/blog/lib/velocity/velocity.ui.min.js"></script>

<script src="/blog/js/utils.js"></script>

<script src="/blog/js/motion.js"></script>


<script src="/blog/js/schemes/pisces.js"></script>


<script src="/blog/js/next-boot.js"></script>




  




  
<script src="/blog/js/local-search.js"></script>













  

  

  

</body>
</html>
